package com.maxin.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.maxin.entity.Ausertable;
import com.maxin.mapper.AusertableMapper;
import com.maxin.service.IAusertableService;

@Service
public class AusertableServiceImpl implements IAusertableService {

	@Autowired
	private AusertableMapper ausertableMapper;
	
	public void setAusertableMapper(AusertableMapper ausertableMapper) {
		this.ausertableMapper = ausertableMapper;
	}

	@Override
	public int insert(Ausertable ausertable) {
		return ausertableMapper.insert(ausertable);
	}

	@Override
	public int deleteByName(String aname) {
		return ausertableMapper.deleteByName(aname);
	}

	@Override
	public int updateByName(Ausertable ausertable) {
		return ausertableMapper.updateByName(ausertable);
	}

	@Override
	public Ausertable selectByName(String aname) {
		return ausertableMapper.selectByName(aname);
		
	}

	@Override
	public List<Ausertable> selectAll() {
		return ausertableMapper.selectAll();
	}

}
